package com.sixth.controller;


import com.sixth.entity.EduCourse;
import com.sixth.service.CouseService;
import com.sixth.until.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: self-tui-education
 * @description:
 * @author: 厉泽禄
 * @create: 2022-04-19 20:45
 **/
@RestController
@RequestMapping("stat/course")
public class CreateController {
    @Autowired
    private CouseService couseService;

    @PostMapping("queryAllCourseRanking")
    public CommonResult queryAllCourseRanking(@RequestBody EduCourse course){
        return couseService.queryAllCourseRanking(course);
    }
}
